package com.woniuxy.daos;

import com.woniuxy.entitys.TbHospital;
import com.woniuxy.entitys.TbHospitalExample;

import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Param;

import javax.xml.ws.Holder;

public interface TbHospitalDao {
    long countByExample(TbHospitalExample example);

    int deleteByExample(TbHospitalExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(TbHospital record);

    int insertSelective(TbHospital record);

    List<TbHospital> selectByExample(TbHospitalExample example);

    TbHospital selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") TbHospital record, @Param("example") TbHospitalExample example);

    int updateByExample(@Param("record") TbHospital record, @Param("example") TbHospitalExample example);

    int updateByPrimaryKeySelective(TbHospital record);

    int updateByPrimaryKey(TbHospital record);

    int getallHospital();
    List<TbHospital> getHospitals();


    List<TbHospital> search(List<Date> list, String input);

    List<TbHospital> search(@Param("star")String date, @Param("end")String date1, @Param("input")String input);
    List<TbHospital> getAllHospital();


    List<TbHospital> selAllHospital();
    List<TbHospital> getHospitalAndDepartment();
}